﻿using System.Windows;
using System.Windows.Controls;
using LiveTiss.Schemas;

namespace LiveTiss.Guias.UserControls
{
    public partial class ConselhoProfissional : UserControl
    {
        #region Value

        public static readonly DependencyProperty ValueProperty = DependencyProperty.Register("Value",
            typeof(ct_conselhoProfissional), typeof(ConselhoProfissional), new PropertyMetadata(null));

        public ct_conselhoProfissional Value
        {
            get { return (ct_conselhoProfissional)GetValue(ValueProperty); }
            set { SetValue(ValueProperty, value); }
        }

        #endregion

        public ConselhoProfissional()
        {
            this.DataContext = this;

            if (this.Value == null)
            {
                this.Value = new ct_conselhoProfissional()
                {
                    numeroConselho = string.Empty,
                    siglaConselho = st_conselhoProfissional.CRAS,
                    ufConselho = st_UF.RS
                };
            }

            InitializeComponent();
        }
    }
}
